package testdemo;

public class Test2{
    public static void main(String[] args) {
/*         MyArray myArray = new MyArray();
        myArray.setValue(0,10);
        myArray.setValue(1,"hello");

        String ret = (String) myArray.getPos(1);
        System.out.println(ret); */

        MyArray<Integer> myArray = new MyArray<>();
        myArray.setValue(0,10);
        myArray.setValue(1,20);

        int ret = myArray.getPos(1);
        System.out.println(ret);

/*         MyArray<String> myArray2 = new MyArray<>();
        myArray2.setValue(0,"hello");
        myArray2.setValue(1,"world");

        String str = myArray2.getPos(1);
        System.out.println(str); */

    }
}
